package com.aspose.cells;

abstract class zaba {
   protected int a;
   protected int b;
   protected int c;
   protected byte[] d;

   public abstract void a(byte[] var1, int var2, int var3);

   public abstract zaye a(zaay var1);

   public abstract zagu[][] a();

   public abstract String b();

   public abstract zyz b(zaay var1);

   protected abstract int a(int var1);

   public int c() {
      return this.a;
   }

   public void b(int var1) {
      this.a = var1;
   }

   public int d() {
      return this.b;
   }

   public void c(int var1) {
      this.b = var1;
   }

   public boolean e() {
      return this.a < this.b;
   }

   public byte[] f() {
      return this.d;
   }

   public byte g() {
      return this.d[this.a];
   }

   public boolean h() {
      switch(this.d[this.a]) {
      case 3:
      case 4:
      case 5:
      case 6:
      case 7:
      case 8:
      case 9:
      case 10:
      case 11:
      case 12:
      case 13:
      case 14:
      case 15:
      case 16:
      case 17:
      case 18:
      case 19:
      case 20:
      case 21:
      case 22:
         ++this.a;
         break;
      case 23:
      case 26:
      case 27:
      case 32:
      case 36:
      case 37:
      case 42:
      case 43:
      case 44:
      case 45:
      case 48:
      case 49:
      case 50:
      case 51:
      case 52:
      case 53:
      case 54:
      case 55:
      case 56:
      case 58:
      case 59:
      case 60:
      case 61:
      case 62:
      case 63:
      case 64:
      case 68:
      case 69:
      case 74:
      case 75:
      case 76:
      case 77:
      case 80:
      case 81:
      case 82:
      case 83:
      case 84:
      case 85:
      case 86:
      case 87:
      case 88:
      case 90:
      case 91:
      case 92:
      case 93:
      case 94:
      case 95:
      case 96:
      case 100:
      case 101:
      case 106:
      case 107:
      case 108:
      case 109:
      case 112:
      case 113:
      case 114:
      case 115:
      case 116:
      case 117:
      case 118:
      case 119:
      case 120:
      default:
         com.aspose.cells.a.c.zl.a("Unknown token type encounted: " + (this.d[this.a] & 255));
         this.a = this.b;
         return false;
      case 24:
         switch(this.d[this.a + 1]) {
         case 25:
            this.a += 14;
            return true;
         default:
            this.a += 6;
            return true;
         }
      case 25:
         switch(this.d[this.a + 1]) {
         case 4:
            int var1 = com.aspose.cells.b.a.zc.e(this.d, this.a + 2) & '\uffff';
            this.a += var1 * 2 + 6;
            return true;
         default:
            this.a += 4;
            return true;
         }
      case 28:
      case 29:
         this.a += 2;
         break;
      case 30:
         this.a += 3;
         break;
      case 31:
         this.a += 9;
         break;
      case 33:
      case 65:
      case 97:
         this.a += 3;
         break;
      case 34:
      case 66:
      case 98:
         this.a += 4;
         break;
      case 35:
      case 67:
      case 99:
         this.a += 5;
         break;
      case 38:
      case 39:
      case 40:
      case 70:
      case 71:
      case 72:
      case 102:
      case 103:
      case 104:
         this.a += 7;
         break;
      case 41:
      case 73:
      case 105:
         this.a += 3;
         break;
      case 46:
      case 47:
      case 78:
      case 79:
      case 110:
      case 111:
         this.a += 3;
         break;
      case 57:
      case 89:
      case 121:
         this.a += 7;
      }

      return true;
   }

   public zzj a(Workbook var1) {
      switch(this.d[this.a]) {
      case 35:
      case 67:
      case 99:
         zzj var8 = new zzj(zaaq.a(this.d[this.a]), var1.getWorksheets().getNames().get(this.a(this.a + 1)), -1);
         this.a += 5;
         return var8;
      case 57:
      case 89:
      case 121:
         int var2 = com.aspose.cells.b.a.zc.e(this.d, this.a + 1) & '\uffff';
         WorksheetCollection var3 = var1.getWorksheets();
         int var4 = var3.q().c(var2);
         zbqg var5 = null;
         if (var3.v() != null && var4 < var3.v().getCount()) {
            var5 = var3.v().a(var4);
            if (var5.e()) {
               var5 = null;
            }
         }

         zzj var6;
         if (var5 == null) {
            Name var7 = var3.getNames().get(this.a(this.a + 3));
            var6 = new zzj(zaaq.a(this.d[this.a]), var7, var2);
         } else {
            zuk var9 = (zuk)var5.b().get(this.a(this.a + 3));
            var6 = new zzj(zaaq.a(this.d[this.a]), var9, var2);
         }

         this.a += 7;
         return var6;
      default:
         return null;
      }
   }
}
